# Maintainer: Jaroslav Lichtblau <dragonlord@aur.archlinux.org>
# Contributor: Geoffroy Carrier <geoffroy.carrier@koon.fr>

pkgname=mmsrip
pkgver=0.7.0
pkgrel=7
pkgdesc="A downloader for the proprietary protocol MMS://"
arch=('loong64' 'x86_64')
url="https://nbenoit.tuxfamily.org/projects.php?rq=mmsrip"
license=('GPL2')
depends=('glibc')
source=(https://nbenoit.tuxfamily.org/projects/$pkgname/$pkgname-$pkgver.tar.gz)
sha512sums=('2f6e66d5ae37df96e2df646eaa4b3f77d3c3369e5db8e9b3254f008723146b79ebe375dc7672409d9e7bd5734cbe5a735e953e28aa87d34c375e6eb30c254c07')

build() {
  cd ${srcdir}/$pkgname-$pkgver

  ./configure --prefix=/usr \
              --mandir=/usr/share/man
  make
}

package() {
  cd ${srcdir}/$pkgname-$pkgver
  make DESTDIR=${pkgdir} install
}
